package weifei.wx.community.entity;


import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import com.mybatisflex.core.activerecord.Model;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;


@Accessors(chain = true)
@Data(staticConstructor = "create")
@EqualsAndHashCode(callSuper = true)
@Table("tie")
public class Tie extends Model<Tie>
{
    private Long id;
    private Long userId;
    @Column(onInsertValue = "now()")
    private Date publishTime;
    @NotNull @NotEmpty @NotBlank
    private String content;


    public Tie() {}
}





